<%--
  Created by IntelliJ IDEA.
  User: 15618
  Date: 2022/4/12
  Time: 10:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table border="1">
        <tr>
            <td>id</td>
            <td>账号</td>
            <td>密码</td>
            <td>昵称</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${pageInfo.list}" var="user">
            <tr>
                <td>${user.id}</td>
                <td>${user.username}</td>
                <td>${user.pwd}</td>
                <td>${user.nick}</td>
                <td>
                    <a href="${pageContext.request.contextPath}/user/findById/${user.id}">编辑</a>
                    <a href="${pageContext.request.contextPath}/user/removeById?id=${user.id}">删除</a>
                </td>
            </tr>
        </c:forEach>
    </table>
    <a href="${pageContext.request.contextPath}/user/list?page=${pageInfo.prePage}">上一页</a>
    <a href="${pageContext.request.contextPath}/user/list?page=${pageInfo.nextPage}">下一页</a>
</body>
</html>
